<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

function routerPush() {
  router.push('/home/subHome2/subHome/subHome')
}
</script>

<template>
  <n-flex vertical>
    <n-card size="small" title="子子首页">
      <template #header-extra>
        <n-button size="small" tertiary @click="routerPush">
          跳转
        </n-button>
      </template>

      子子首页内容
    </n-card>
  </n-flex>
</template>
